<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<body>
	<h1>用户信息列表显示</h1>
	<a href="${pageContext.request.contextPath}/dept_add.jsp">增加信息</a>
	<table>
	<tr>
				<td>ID</td>
				<td>用户名</td>
				<td>密码</td>
				<td>
		<c:forEach items="${depts }" var="d">
			<tr>
				<td>${d.no }</td>
				<td>${d.name }</td>
				<td>${d.password }</td>
				<td>
					<a href="${pageContext.request.contextPath}/dept/view.action?no=${d.no}">查看</a>
					<a href="${pageContext.request.contextPath}/dept/del.action?no=${d.no}" >删除</a>
					<a href="${pageContext.request.contextPath}/dept_modify.jsp?no=${d.no}" >修改</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>